package cn.edu.bjfu.practice.practice.teacher.dao;

import cn.edu.bjfu.practice.practice.teacher.pojo.domain.Team;
import cn.edu.bjfu.practice.practice.teacher.pojo.vo.ProjectTeamView;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeamDao extends BaseMapper<Team> {

    /**
     * 查询该项目下所有小组
     * @param project_id
     * @return
     */
    public List<ProjectTeamView> selectTeam(Integer project_id);

    /**
     * 根据id找team
     * @param team_id
     * @return
     */
    public Team getTeamById(Integer team_id);
}
